package com.suxin.call_service_world_feign.remoteService;

import com.suxin.call_service_world_feign.remoteService.hystrix.WorldServiceHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-world",fallback = WorldServiceHystrix.class)
public interface WorldService {

    @GetMapping(value = "world")
    String worldFromWorldService(@RequestParam("name") String name);



}
